package com.qf.pojo.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface TicketMapper {

    @Select("select count from ticket where id=#{id}")
    Integer findCountById(Integer id);

    @Update("update ticket set count = #{count} where id=#{id}")
    void updateCountById(@Param("id") Integer id, @Param("count") Integer count);
}
